<?php
/**
 * Created by PhpStorm.
 * User: zhe.wang
 * Date: 2020/8/3
 * Time: 12:22
 */
namespace app\models;
use Yii;
class QuestionBankModel extends \yii\db\ActiveRecord{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'question_bank';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['questionId','uid','createTime'], 'required'],
        ];

    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'questionId' => '题目id',
            'uid' => '用户id',
            'createTime' => '创建时间',

        ];
    }
}